def new_text(func):
    print('222')

    def new_func(*args, **kwargs):
        print('333')
        return func(*args, **kwargs)
    return new_func


def new_text1(func):
    print('aaa')

    def new_func(*args, **kwargs):
        print('bbb')
        return func(*args, **kwargs)
    return new_func


@new_text1
@new_text
def aa():
    print('111')


if __name__ == '__main__':
    aa()